package klass.parse.domain.constant.factory;

import klass.parse.domain.constant.Constant;
import klass.parse.domain.constant.ConstantIntegerInfo;

import java.io.InputStream;

import static klass.parse.util.InputStreamUtils.*;

public class ConstantIntegerFactory extends BaseConstantFactory {
    @Override
    public Constant create(InputStream inputStream) {
        return new ConstantIntegerInfo(nextInt(inputStream));
    }
}
